
var date = new Date;
var year = date.getYear();//当前年份
var month = date.getMonth();//当前月份的前一个月
var month_arr = new Array;//柱状图x坐标月份生成arr



var column_data_arr_7 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [120, 114, 130, 105, 140, 211]
}, {
    name: '集团单位产品收入',
    data: [90, 40, 100, 75, 109, 141]
}];

var pie_arr_7 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 37],
        ['集团固话', 10],
        ['IDC', 11],
        ['物联网', 33],
        ['其他', 9]
    ]
}];
var column_data_7 = {
    group_member:211,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:8,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.5,
        value_up:true
    },//集团成员统付环比
    group_unit_product:141,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:1.1,
        value_up:false
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:0.1,
        value_up:true
    },//集团单位产品环比
    four_g_number:12562,//4G用户数
    four_g_number_tb:{
        value_num:4.5,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:4.1,
        value_up:false
    },//4G用户数环比
    four_g_permeate:75,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.9,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:2,
        value_up:false
    }//4G渗透率同比
};
var column_count_data_7 = {
    group_total:21,
    member_total:2561,
    group_arrearage:12,
    terminal_overdue:125
};


var pie_data_7 = {
    group_sole_line:12.01,
    group_sole_line_tb:{
        value_num:8,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:0.5,
        value_up:true
    },
    group_phone:48.12,
    group_phone_tb:{
        value_num:1.1,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.1,
        value_up:true
    },
    IDC:8.12,
    IDC_tb:{
        value_num:4.1,
        value_up:true
    },
    IDC_hb:{
        value_num:4.1,
        value_up:false
    },
    IOT:4.82,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:2,
        value_up:true
    },
    IOT_hb:{
        value_num:2,
        value_up:false
    }
};
var pie_count_data_7 = {
    USMI_member:1253,
    USMI_permeate:20,
    USMI_tb:{
        value_num:2,
        value_up:true
    },
    four_g_terminal:400,
    four_g_terminal_permeate:30,
    four_g_terminal_tb:{
        value_num:1,
        value_up:false
    },
    four_g_assemble:800,
    four_g_assemble_permeate:50,
    four_g_assemble_tb:{
        value_num:5,
        value_up:true
    }
};










//-----------------------data 6 start----------------


var column_data_arr_6 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [111, 120, 114, 130, 105, 140]
}, {
    name: '集团单位产品收入',
    data: [72, 90, 40, 100, 75, 109]
}];
var pie_arr_6 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 20],
        ['集团固话', 12],
        ['IDC', 8],
        ['物联网', 40],
        ['其他', 10]
    ]
}];
var column_data_6 = {
    group_member:140,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:7.3,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.7,
        value_up:true
    },//集团成员统付环比
    group_unit_product:109,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:0.9,
        value_up:false
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:0.5,
        value_up:true
    },//集团单位产品环比
    four_g_number:12302,//4G用户数
    four_g_number_tb:{
        value_num:4.4,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:3.5,
        value_up:false
    },//4G用户数环比
    four_g_permeate:72,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.7,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:1.8,
        value_up:false
    }//4G渗透率同比
};
var column_count_data_6 = {
    group_total:20,
    member_total:2503,
    group_arrearage:8,
    terminal_overdue:70
};


var pie_data_6 = {
    group_sole_line:12.01,
    group_sole_line_tb:{
        value_num:7.8,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:0.4,
        value_up:true
    },
    group_phone:42.12,
    group_phone_tb:{
        value_num:1.1,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.2,
        value_up:true
    },
    IDC:8.12,
    IDC_tb:{
        value_num:0.71,
        value_up:false
    },
    IDC_hb:{
        value_num:2.1,
        value_up:true
    },
    IOT:4.1,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:1.7,
        value_up:true
    },
    IOT_hb:{
        value_num:1.1,
        value_up:false
    }
};
var pie_count_data_6 = {
    USMI_member:1203,
    USMI_permeate:10,
    USMI_tb:{
        value_num:1.6,
        value_up:true
    },
    four_g_terminal:370,
    four_g_terminal_permeate:20,
    four_g_terminal_tb:{
        value_num:1.8,
        value_up:false
    },
    four_g_assemble:566,
    four_g_assemble_permeate:32,
    four_g_assemble_tb:{
        value_num:7,
        value_up:true
    }
};

//-----------------------data 6 end   ---------------------------------------------




//-----------------------data 5 start----------------


var column_data_arr_5 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [103, 111, 120, 114, 130, 105]
}, {
    name: '集团单位产品收入',
    data: [63, 72, 90, 40, 100, 75]
}];
var pie_arr_5 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 29],
        ['集团固话', 18],
        ['IDC', 17],
        ['物联网', 33],
        ['其他', 7]
    ]
}];
var column_data_5 = {
    group_member:105,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:4.1,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.9,
        value_up:true
    },//集团成员统付环比
    group_unit_product:75,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:0.4,
        value_up:false
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:1.5,
        value_up:true
    },//集团单位产品环比
    four_g_number:12100,//4G用户数
    four_g_number_tb:{
        value_num:4.0,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:2.5,
        value_up:false
    },//4G用户数环比
    four_g_permeate:62,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.45,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:1.4,
        value_up:false
    }//4G渗透率同比
};
var column_count_data_5 = {
    group_total:17,
    member_total:2300,
    group_arrearage:12,
    terminal_overdue:54
};


var pie_data_5 = {
    group_sole_line:21,
    group_sole_line_tb:{
        value_num:8.8,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:1.1,
        value_up:true
    },
    group_phone:30.5,
    group_phone_tb:{
        value_num:1.4,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.33,
        value_up:true
    },
    IDC:7,
    IDC_tb:{
        value_num:1.2,
        value_up:false
    },
    IDC_hb:{
        value_num:3.5,
        value_up:true
    },
    IOT:2.9,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:1.5,
        value_up:true
    },
    IOT_hb:{
        value_num:1.9,
        value_up:false
    }
};
var pie_count_data_5 = {
    USMI_member:1005,
    USMI_permeate:17,
    USMI_tb:{
        value_num:0.8,
        value_up:false
    },
    four_g_terminal:270,
    four_g_terminal_permeate:10,
    four_g_terminal_tb:{
        value_num:1.7,
        value_up:true
    },
    four_g_assemble:396,
    four_g_assemble_permeate:20,
    four_g_assemble_tb:{
        value_num:6,
        value_up:true
    }
};
//-----------------------data 5 end   ---------------------------------------------




//-----------------------data 4 start----------------


var column_data_arr_4 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [125, 103, 111, 120, 114, 130]
}, {
    name: '集团单位产品收入',
    data: [69, 63, 72, 90, 40, 100]
}];
var pie_arr_4 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 24],
        ['集团固话', 22],
        ['IDC', 24],
        ['物联网', 21],
        ['其他', 9]
    ]
}];
var column_data_4 = {
    group_member:130,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:4.5,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.2,
        value_up:false
    },//集团成员统付环比
    group_unit_product:100,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:0.9,
        value_up:true
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:1.1,
        value_up:true
    },//集团单位产品环比
    four_g_number:10980,//4G用户数
    four_g_number_tb:{
        value_num:3.0,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:1.5,
        value_up:false
    },//4G用户数环比
    four_g_permeate:77,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.05,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:1.3,
        value_up:false
    }//4G渗透率同比
};
var column_count_data_4 = {
    group_total:12,
    member_total:2900,
    group_arrearage:17,
    terminal_overdue:24
};


var pie_data_4 = {
    group_sole_line:19,
    group_sole_line_tb:{
        value_num:7.8,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:3.1,
        value_up:true
    },
    group_phone:28.5,
    group_phone_tb:{
        value_num:1.9,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.13,
        value_up:true
    },
    IDC:7,
    IDC_tb:{
        value_num:1.7,
        value_up:false
    },
    IDC_hb:{
        value_num:2.5,
        value_up:true
    },
    IOT:2.9,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:1.8,
        value_up:true
    },
    IOT_hb:{
        value_num:2.2,
        value_up:false
    }
};
var pie_count_data_4 = {
    USMI_member:970,
    USMI_permeate:15,
    USMI_tb:{
        value_num:0.6,
        value_up:false
    },
    four_g_terminal:223,
    four_g_terminal_permeate:14,
    four_g_terminal_tb:{
        value_num:1.7,
        value_up:true
    },
    four_g_assemble:375,
    four_g_assemble_permeate:33,
    four_g_assemble_tb:{
        value_num:7,
        value_up:true
    }
};
//-----------------------data 4 end   ---------------------------------------------





//-----------------------data 3 start----------------


var column_data_arr_3 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [109, 125, 103, 111, 120, 114]
}, {
    name: '集团单位产品收入',
    data: [70, 69, 63, 72, 90, 40]
}];
var pie_arr_3 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 25],
        ['集团固话', 27],
        ['IDC', 18],
        ['物联网', 24],
        ['其他', 6]
    ]
}];
var column_data_3 = {
    group_member:114,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:3.5,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.5,
        value_up:false
    },//集团成员统付环比
    group_unit_product:40,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:0.85,
        value_up:true
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:1.4,
        value_up:true
    },//集团单位产品环比
    four_g_number:10850,//4G用户数
    four_g_number_tb:{
        value_num:2.0,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:1.7,
        value_up:false
    },//4G用户数环比
    four_g_permeate:79,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.0,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:1.7,
        value_up:false
    }//4G渗透率同比
};
var column_count_data_3 = {
    group_total:12,
    member_total:2473,
    group_arrearage:15,
    terminal_overdue:21
};


var pie_data_3 = {
    group_sole_line:17,
    group_sole_line_tb:{
        value_num:7.1,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:4.1,
        value_up:true
    },
    group_phone:22.5,
    group_phone_tb:{
        value_num:1.5,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.8,
        value_up:true
    },
    IDC:9,
    IDC_tb:{
        value_num:1.2,
        value_up:false
    },
    IDC_hb:{
        value_num:1.5,
        value_up:true
    },
    IOT:2.4,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:1.6,
        value_up:true
    },
    IOT_hb:{
        value_num:2.1,
        value_up:false
    }
};
var pie_count_data_3 = {
    USMI_member:935,
    USMI_permeate:21,
    USMI_tb:{
        value_num:0.7,
        value_up:true
    },
    four_g_terminal:203,
    four_g_terminal_permeate:12,
    four_g_terminal_tb:{
        value_num:1.4,
        value_up:true
    },
    four_g_assemble:305,
    four_g_assemble_permeate:30,
    four_g_assemble_tb:{
        value_num:9,
        value_up:true
    }
};
//-----------------------data 3 end   ---------------------------------------------







//-----------------------data 2 start----------------


var column_data_arr_2 = [{//柱状图数据
    name: '集团成员统付收入',
    data: [117, 109, 125, 103, 111, 120]
}, {
    name: '集团单位产品收入',
    data: [67, 70, 69, 63, 72, 90]
}];
var pie_arr_2 = [{
    type: 'pie',
    name: '占比',
    data: [
        ['集团专线', 35],
        ['集团固话', 17],
        ['IDC', 14],
        ['物联网', 27],
        ['其他', 7]
    ]
}];
var column_data_2 = {
    group_member:120,//集团成员统付，单位：万元
    group_member_tb:{
        value_num:2.3,
        value_up:true
    },//集团成员统付同比
    group_member_hb:{
        value_num:0.7,
        value_up:false
    },//集团成员统付环比
    group_unit_product:90,//集团单位产品，单位：万元
    group_unit_product_tb:{
        value_num:0.95,
        value_up:true
    },//集团单位产品同比
    group_unit_product_hb:{
        value_num:1.5,
        value_up:true
    },//集团单位产品环比
    four_g_number:10700,//4G用户数
    four_g_number_tb:{
        value_num:2.7,
        value_up:true
    },//4G用户数同比
    four_g_number_hb:{
        value_num:1.5,
        value_up:false
    },//4G用户数环比
    four_g_permeate:85,//4G渗透率
    four_g_permeate_tb:{
        value_num:1.3,
        value_up:true
    },//4G渗透率同比
    four_g_permeate_hb:{
        value_num:1.2,
        value_up:true
    }//4G渗透率同比
};
var column_count_data_2 = {
    group_total:17,
    member_total:2073,
    group_arrearage:17,
    terminal_overdue:19
};


var pie_data_2 = {
    group_sole_line:15,
    group_sole_line_tb:{
        value_num:7.9,
        value_up:true
    },
    group_sole_line_hb:{
        value_num:3.5,
        value_up:true
    },
    group_phone:21.5,
    group_phone_tb:{
        value_num:1.9,
        value_up:false
    },
    group_phone_hb:{
        value_num:0.75,
        value_up:true
    },
    IDC:9,
    IDC_tb:{
        value_num:1.1,
        value_up:false
    },
    IDC_hb:{
        value_num:1.7,
        value_up:true
    },
    IOT:2.6,//Internet of things:物联网缩写
    IOT_tb:{
        value_num:2.1,
        value_up:true
    },
    IOT_hb:{
        value_num:2.9,
        value_up:false
    }
};
var pie_count_data_2 = {
    USMI_member:905,
    USMI_permeate:17,
    USMI_tb:{
        value_num:0.5,
        value_up:true
    },
    four_g_terminal:264,
    four_g_terminal_permeate:17,
    four_g_terminal_tb:{
        value_num:1.3,
        value_up:true
    },
    four_g_assemble:288,
    four_g_assemble_permeate:20,
    four_g_assemble_tb:{
        value_num:7,
        value_up:true
    }
};
//-----------------------data 2 end   ---------------------------------------------




//--------------------------------- all data end --------------------------------------

var options_column = {
    chart: {
        type: 'column'
    },
    colors: ['#9AC0CD', '#9AFF9A'],
    title: {
        text: ''
    },
    xAxis: {
        categories: month_arr,
        crosshair: true,
        title: '',
    },
    credits: {
        text: '',
        href: ''
    },
    yAxis: {
        min: 50,
        title: {
            text: '<span style="color: #B0B0B0;">单位：万元</span>',
        },
        useHTML: true,
        lineWidth: 1
    },
    tooltip: {
        headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
        pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
        '<td style="padding:0"><b>{point.y:.1f} 万元</b></td></tr>',
        footerFormat: '</table>',
        shared: true,
        useHTML: true
    },
    legend: {
        layout: 'horizontal',
        borderColor: 'white'
    },
    plotOptions: {
        column: {
            stacking: 'normal'
        }
    },
    series: column_data_arr_7
};
var options_pie = {
    title: {
        text: '<span class="am-badge am-badge-primary am-round am-text-default">集团单位产品</span>',
        style: {
            color: 'green',
        },useHTML:true,
        align: 'left'
    },
    colors: ['#FF6EB4', '#FFC1C1', '#B4EEB4', '#A4D3EE', '#A020F0	'],
    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
    },
    legend: {
        layout: 'vertical',
        align: 'right',
        borderColor: 'white',
        itemMarginBottom:20
    },
    credits: {
        text: '',
        href: ''
    },
    plotOptions: {
        pie: {
            animation: true,
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: {
                enabled: true,
                distance: -30,
                style: {
                    fontWeight: 'bold',
                    color: 'white',
                    textShadow: '0px 1px 2px black'
                },
                format: '{y}%'
            },
            showInLegend: true,
            size: '20',
            innerSize: '7'
        }
    },
    series: pie_arr_7
};
